package com.kmxd.ams.client.arrange.dto;

import com.kmxd.ams.infra.arrange.base.BaseBO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 修改字段
 *
 * @author ZuoLG
 */
@Schema(description = "修改字段")
@EqualsAndHashCode(callSuper = true)
@Data
public class UpdateFieldDTO extends BaseBO {
  @Schema(description = "文件ids")
  private String docIds;

  /** 是否修改全部 */
  @Schema(description = "是否修改全部")
  private Boolean batchEditAll;

  /** 修改的字段 */
  @Schema(description = "修改的字段")
  private String editField;

  /** 修改的字段中文名 */
  @Schema(description = "修改的字段中文名")
  private String editFieldName;

  /** 替换模式,1：将整个替换，2：固定替换，3：查找替换 */
  @Schema(description = "替换模式,1：将整个替换，2：固定替换，3：查找替换")
  private Integer replaceMode;

  /** 替换开始位置 */
  @Schema(description = "替换开始位置")
  private Integer replaceStart;

  /** 替换长度 */
  @Schema(description = "替换长度")
  private Integer replaceLength;

  /** 查找替换固定内容 */
  @Schema(description = "查找替换固定内容")
  private String replaceSearch;

  /** 替换的规则 */
  @Schema(description = "替换的规则")
  private String rules;
}
